<?php

namespace app\common\model;

use think\Model;

class Admin extends BaseModel
{
    //查询所有管理员
    public function getAdminInfoAll($id = 0)
    {
        if($id){
            return $this->get(['id'=>$id]);
        }else{
            return $this->select();
        }
    }
}
